package cn.app.android.sichuanxiaoke.com.xiaokeapp.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * Created by weian on 2017/8/18.
 */
public class NonScrollGridView extends GridView {

    public NonScrollGridView(Context context, AttributeSet attrs){
            super(context, attrs);
    }
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec){
        int mExpandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, mExpandSpec);
    }
}